package com.atguigu.jxc.dao;

import com.atguigu.jxc.domain.SaleCountVo;
import com.atguigu.jxc.entity.CustomerReturnList;

import java.util.List;

public interface CustomerReturnListDao {
    //保存客户退货单信息
    void insertCustomerReturnList(CustomerReturnList customerReturnList);
    //根据退货单号returnNumber   查询退货单信息
    CustomerReturnList selectCustomerReturnListByNumber(String returnNumber);
    //4.1、客户退货单查询（可查询条件：退货单号、客户、退款状态）
    List<CustomerReturnList> selectCustomerReturnList(String returnNumber, Integer customerId, Integer state, String sTime, String eTime);
    //4.3、删除退货单
    void removeCustomerReturnList(Integer customerReturnListId);
    //4.2、客户退货统计（可根据 商品类别、商品编码或名称 条件查询）
    List<SaleCountVo> countCustomerReturnListGoods(String sTime, String eTime, Integer goodsTypeId, String codeOrName);
    //客户统计 退货单 支付结算
    void updateStateCustomerReturnList(String customerReturnListId);
}
